06-27-2024

PACKAGES:
- xtable
- dplyr
- ipumsr

DATA:
- dta.m <- readRDS("w13_data_06272024.rds")
- ts.matched.06212021.b <- readRDS("mysm_prod_06272024.Rdata")
- voterfile <- readRDS("mysm_prod_06272024.Rdata")
- dta22 <- readRDS("cleaned_dta22.Rdata")
- civiqs_id <- read.csv(file="merged-targets12-11032021.csv",header=T)

The above data sets have been cleaned to include only the variables necessary to produce the tables and figures in the paper. They have been de-identified such that variables like TargetSmart's Voter ID have been replaced with consecutive digits 1-20000 to protect anonymity while allowing for analysis of unique observations.

CPS data is not included in the public replication files, and must be requested via IPUMS: https://usa.ipums.org/usa/
- txt <- "cps_00006.xml", cps_00006.dat

Chunks of code producing each figure are denoted by comments indicating where the chunks start and end; e.g., # Table 1 #### / # End Table 1 ####

DEPENDENCIES:
Tables and figures should be produced in the order that they are written to account for any dependencies, including:
- all data and packages are loaded at the top of the script to allow all tables and figures to run smoothly
- "statewide" and "statewide.id" objects created in Table 2 code are also used in Table 3 code
- tables used to produce Table 5 are also used to produce Table 6
- "vars" object created in Table 7 code is also used to produce Table 11
- "statewide," "pa_panel," and "pa_panel_val_rep" objects created in Table 2 are used to create an additional filtered data set for Table 9
